<template>
    <div class="">
        <h2>登录页面</h2>
        <el-button type="primary" @click="submitForm">登录</el-button>
        <!-- 放置图标相关的容器 -->
    </div>
</template>

<script  lang="ts" setup>
import { useRouter } from 'vue-router';
let router = useRouter();
// 可以支持ts语法
let submitForm = () => {
    router.push('/admin')
}

</script>

<style lang="less" scoped>

</style>
